# 构建一个基于ubuntu的docker定制镜像 # 基础镜像
FROM ubuntu
# 镜像作者
MAINTAINER fcourage
# 执行命令
RUN mkdir hello
RUN mkdir world
ADD ["sources.list","/etc/apt/test/"]
#RUN apt-get clean
#RUN apt-get update
#RUN apt-get install nginx -y
COPY ["index.html","/var/www/html/"]
# 对外端口 
EXPOSE 80

#ENTRYPOINT ["/usr/sbin/nginx","-g","daemon off;"]

#CMD ["/usr/sbin/nginx","-g","daemon off;"]
#ENTRYPOINT ["/usr/sbin/nginx","-g","daemon off;"]

#ENTRYPOINT ["/usr/sbin/nginx"]
#CMD ["-g"] 
#CMD会被覆盖
#docker run --name nginx-7 -d ubuntu-nginx:v0.5 -g "daemon off;"